package com.yunduo.common.YunDuoConst;

public class OrderState {
    //待支付
    public static String DELAY_PAY="0";
    //待发货
    public static String DELAY_SEND="1";
    //已发货
    public static String ALREADY_SEND="2";
    //待收货
    public static String DELAY_RECEIVING="3";
    //完成
    public static String PAY_OK="4";
    //取消
    public static String PAY_CANCEL="5";
    //全部
    public static String ORDER_ALL="6";
    //商品支付类型 线下支付
    public static String UNLINE = "1";
    //商品支付类型 线上支付
    public static String ONLINE = "0";

    public static String getStateCN(String state){
        switch (state){
            case "0":
                return "待支付";
            case "1":
                return "待发货";
            case "2":
                return "已发货";
            case "3":
                return "待收货";
            case "4":
                return "完成";
            case "5":
                return "已取消";
            default:
                return "未知";
        }
    }
}
